package com.qykj.ddhing.pda.demo.arms.test1;

import com.google.gson.Gson;

import javax.inject.Inject;

/**
 * author : 0000
 * desc   :
 * time   : 2018/07/19
 * updateTime : 2018/07/19
 */

public class User {
    private int code;
    private boolean success;
    private String name;
    private String pws;
    // 这个@Inject表示可以提供User类型的实例
//    @Inject
    public User() {
        this.name = "this is test 无参数构造";
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPws() {
        return pws;
    }

    public void setPws(String pws) {
        this.pws = pws;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    @Override
    public String toString() {
        return new Gson().toJson(this);
    }
}
